/*cmpflt.c  --  浮点数比较*/
#include "stdio.h"

int main(void){

    const double ANSWER = 3.1415926;
    double response;

    printf("输入response(double):");
    scanf("%lf",&response);
    while((response - ANSWER) > 0.0001){
        printf("Try again!\n");
        scanf("%lf",&response);
    }

    return 0;
}